package cn.wapache.i18n;

public class DefaultI18nEntry implements I18nEntry {

	String key;
	String description="";
	String name;
	String catalog;
	
	@Override
	public String getKey() {
		return key;
	}

	public DefaultI18nEntry setKey(String key) {
		this.key = key;
		return this;
	}

	@Override
	public String getName() {
		return name;
	}

	public DefaultI18nEntry setName(String name) {
		this.name = name;
		return this;
	}

	@Override
	public String getCatalog() {
		return catalog;
	}

	public DefaultI18nEntry setCatalog(String catalog) {
		this.catalog = catalog;
		return this;
	}

	public String getDescription() {
		return description;
	}

	@Override
	public String getDescription(Object... values) {
		return String.format(description, values);
	}

	public DefaultI18nEntry setDescription(String description) {
		this.description = description;
		return this;
	}

}
